package com.jzo2o.market.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jzo2o.market.model.domain.Activity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jzo2o.market.model.dto.request.ActivityQueryForPageReqDTO;
import com.jzo2o.market.model.dto.request.ActivitySaveReqDTO;
import com.jzo2o.market.model.dto.response.ActivityInfoResDTO;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import com.jzo2o.market.model.dto.response.ActivityInfoResDTO;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author itcast
 * @since 2023-09-16
 */
public interface ActivityMapper extends BaseMapper<Activity> {

    void saveActivity(ActivitySaveReqDTO activitySaveReqDTO);

    IPage<ActivityInfoResDTO> selectActivity(@Param("page") Page<ActivityInfoResDTO> page, @Param("id") Long id, @Param("name") String name, @Param("type") Integer type, @Param("status") Integer status);

}
